package com.javasm.mapper;

import com.javasm.entity.Users;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author: Lisa
 * @className: userMapper
 * @description:
 * @date: 2023/10/21 18:58
 * @VERSION: 0.1
 * @SINCE: jdk11
 */
public interface UserMapper {

    @Select("select * from users where username = #{username}")
    public List<Users> findUserByUsername(String username);

    @Select("select * from users where email = #{email}")
    public List<Users> findUserByEmail(String email);
}
